<%--
  Created by IntelliJ IDEA.
  User: test123456test
  Date: 2021/6/2
  Time: 22:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<img src="${pageContext.request.contextPath}/captcha" id="cap" width="100px" height="50px" onclick="refresh()">

<script type="text/javascript">
    function refresh() {
        document.getElementById("cap").src = "${pageContext.request.contextPath}/captcha?i=" + Math.random();

    }
</script>
</body>
</html>
